home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
alpha
/
dipc
/
dipc-0.000
/
dipc-0
/
dipc-0.15
/
dipc.install
< prev
next >
Wrap
Text File
|
1996-07-21
|
2KB
|
80 lines
#! /bin/sh
KERNELPATH=/usr/src/linux
INCLUDE=$KERNELPATH/include/linux
IPCPATH=$KERNELPATH/ipc
ARCH_MM=$KERNELPATH/arch/i386/mm
echo
echo This script partially installs the DIPC V0.15 software.
echo It was written on a Slackware 2.3 \(Kernel 1.2.8\) Linux box.
echo
if test `whoami` != root; then
echo You should be the root to run this script.
exit 1
else
echo Press RETURN to continue, or Control-C to break...
read
fi
echo copying kernel files...
cd kernel
for file in fault.c
do
# don't overwrite the original: copy it once
if test ! -s $ARCH_MM/non_dipc_$file; then
mv $ARCH_MM/$file $ARCH_MM/non_dipc_$file
fi
cp $file $ARCH_MM
done
for file in Makefile shm.c msg.c sem.c dipc.c util.c
do
if test $file != dipc.c; then
if test ! -s $IPCPATH/non_dipc_$file; then
mv $IPCPATH/$file $IPCPATH/non_dipc_$file
fi
fi
cp $file $IPCPATH
done
for file in ipc.h dipc.h
do
if test $file != dipc.h; then
if test ! -s $INCLUDE/non_dipc_$file; then
mv $INCLUDE/$file $INCLUDE/non_dipc_$file
fi
fi
cp $file $KERNELPATH/include/linux
done
echo You can find the original kernel files with \'non_dipc_\' added to them.
cd ..
cd dipcd
echo creating /etc/dipc.conf...
cp dipc.conf /etc
echo making the dipcd program...
make
echo creating /usr/sbin/dipcd...
cp dipcd /usr/sbin
echo adding dipcd to /etc/rc.d/rc.local...
echo "/usr/sbin/dipcd 2>/tmp/dipcd_mess" >> /etc/rc.d/rc.local
cd ..
echo
echo PLEASE MANUALLY DO THE FOLLOWING:
echo *\) Make sure swapping to disk is enabled \(mkswap and swapon\).
echo *\) Add a user with the name 'dipcd' \(adduser\).
echo *\) Edit the file /etc/dipc.conf to write the correct addresses for this
echo " machine and the referee machine."
echo *\) Reconfigure your kernel to make sure System V IPC is present.
echo *\) Make and install the new kernel.
echo
echo Read the files quick.start and docs/installation for more information.
echo